/**
 * SQL数据层
 * SQL数据工厂
 *该类实现了抽象工厂
 * 负责创建IDataMapper、IDataMapper2、IDALStatement；
 * 并指定合适的对象去实例化该接口
 */

package SQLDAL;

import DALFactory.*;


/**
 *SQL数据层<br>
 * SQL数据工厂<br>
 *该类实现了抽象工厂<br>
 * 负责创建IDataMapper、IDataMapper2、IDALStatement；<br>
 * 并指定合适的对象去实例化该接口<br>
 * @author kocio
 */
public class SQLFactory implements IDALFactory{
/**
 * 
 * @return 
 */
    @Override
    public IDataMapper CreateDataMapper()
    {
        return new SQLDataMapper();
    }
/**
 * 
 * @param UserName
 * @param Passwd
 * @return 
 */
    @Override
    public ILogin Login(String UserName,String Passwd)
    {
        return new SQLLogin(UserName,Passwd);
    }
/**
 * 
 * @return 
 */
    @Override
    public IDALStatement CreateStatement()
    {
        return new SQLStatement();
    }
/**
 * 
 * @return 
 */
    @Override
    public IDataMapper2 CreateDataMapper2() {
        return new SQLDataMapper2();
    }
/**
 * 
 * @return 
 */
    @Override
    public IDataMapper3 CreateDataMapper3() {
        return new SQLDataMapper3();
    }
/**
 * 
 * @return 
 */
    @Override
    public IDataProcess CreateDataProcess() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public IRouteMapper CreateRouteMapper() {
        return new SQLRouteMapper();
    }
	@Override
	public IDataCommentMapper CreateCommentMapper() {
		// TODO Auto-generated method stub
		 throw new UnsupportedOperationException("Not supported yet.");
	}
	@Override
	public IDataSearchLogMapper CreatDataSearchLogMapper() {
		// TODO Auto-generated method stub
		 throw new UnsupportedOperationException("Not supported yet.");
	}



}
